//
//  main.m
//  RetainCount-1
//
//  Created by quentin on 15/9/10.
//  Copyright (c) 2015年 QuentinLabs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RetainTraker.h"


int main(int argc, const char * argv[]) {
    
    RetainTraker* tracker = [RetainTraker new];
    [tracker retain];
    
    NSLog(@"%d",[tracker retainCount]);
    
    [tracker retain];
    NSLog(@"%d",[tracker retainCount]);
    
    [tracker release];
    NSLog(@"%d",[tracker retainCount]);
    
    [tracker release];
    NSLog(@"%d",[tracker retainCount]);
    
    [tracker retain];
    NSLog(@"%d",[tracker retainCount]);
    
    [tracker release];
    NSLog(@"%d",[tracker retainCount]);
    
    [tracker release];
    NSLog(@"%d",[tracker retainCount]);
    
    return 0;
    
}
